﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SGH
{
    class Constant
    {
        public static double THIRD_OF_SQRT_THREE = 1.73205 / 3;
        public static double SQRT_THREE = 1.73205;

        public static double PI = 3.1416;
        public static int Allowance = 8;

        //SGH

        public static string path = "", filepath = "";
        public static int blankTypeNum;
        public static int blankRow = 3;
        public static int sheetLength;
        public static int sheetWidth;
        public static int[] allowance;
        public static int[] diameter;
        public static int[] demand;

        public static double squer;
        public static double p;
        public static double emixilo = 0.75;

        public static List<List<int[]>> pattern;
        public static TimeSpan dt;

        //sgh 余料控制
        /// <summary>
        /// 指示本次计算是余料控制算法
        /// </summary>
        public static bool IsControl = false;
        /// <summary>
        /// 指示下次计算是否采用余料控制
        /// </summary>
        public static bool IsUseControl = true;
        /// <summary>
        /// 余料宽度限制
        /// </summary>
        public static int OffcutWidthLimit = 500;
        /// <summary>
        /// 余料种类数限制
        /// </summary>
        public static int OffcutTypeNumLimit = 10;

    }
}
